package dhbw.GUI.Window;

import java.awt.event.*;

import javax.swing.JOptionPane;

import Main.MyController;

public class MyWindowListener implements WindowListener {

	private MyController myc;
	
	public MyWindowListener(MyController myc)
	{
		this.myc=myc;
	}
	
	@Override
	public void windowClosing(java.awt.event.WindowEvent e) {
		this.myc.exit();
	}

	@Override
	public void windowClosed(java.awt.event.WindowEvent e) {
	}

	@Override
	public void windowActivated(java.awt.event.WindowEvent e) {
	}

	@Override
	public void windowDeactivated(WindowEvent e) {
	}

	@Override
	public void windowDeiconified(WindowEvent e) {
		// TODO Auto-generated method stub
	}

	@Override
	public void windowIconified(WindowEvent e) {
		// TODO Auto-generated method stub
	}

	@Override
	public void windowOpened(WindowEvent e) {
		// TODO Auto-generated method stub
	}
}
